import { post,get } from "@/utils/request";

export const getUserInfoAPI = (userId) => get(`/api/wx/user/${userId}`);

export const postUpdateUserInfoAPI = (data) => post("/api/user/update", data);

export const postUploadAvatarAPI = (data) => post("/api/user/upload/avatar", data, {
    headers: {
        'Content-Type': 'multipart/form-data'
    }
});